<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:composition template="/layouts/default.xhtml">
        <ui:define name="title">#{text['reports.title']}</ui:define>
        <ui:param name="menu" value="Reports"/>

        <ui:define name="body">
            <h2>#{text['reports.heading']}</h2>


            <h:form id="reportList">
                <ul class="glassList">
                    <li>
                        <h:commandLink value="#{text['report.report1']}" onclick="return printMainReport('time.tracker.01.rptdesign');"/>
                    </li>
                    <li>
                        <h:commandLink value="#{text['report.report2']}" onclick="return printMainReport('time.tracker.02.rptdesign');"/>
                    </li>
                </ul>
            </h:form>
            <script type="text/javascript">
                function printMainReport(report) {
                    window.open('/birt-viewer/frameset?__report=' + report, 'Timetracker', 'height=700,width=800,status=yes,toolbar=no,menubar=yes,location=no,resizable=yes');
                    return false;
                }
            </script>
        </ui:define>
    </ui:composition>
</html>
